package com.wwj.springboot.service.impl;

import com.wwj.springboot.service.MyProdudcerSevice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.stereotype.Service;

@Service
public class MyProdudcerSeviceImpl implements MyProdudcerSevice {
    @Autowired
    private KafkaTemplate kafkaTemplate;


    @Override
    public void send(String s){
        kafkaTemplate.send("topicqiang",s);
    }
}
